package tds.model15.version1;


/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Observer
 * @Description 抽象观察者类
 * @author tds
 * @Date 2020/1/30 14:54
 * @version 1.0.0
 */
public abstract class Observer {
    protected String name;

    protected Subject sub;

    public Observer(String name, Subject sub){
        this.name = name;
        this.sub = sub;
    }

    /**
     * @Description 观察者通知后的动作
     * @param
     * @return void
     */
    public abstract void update();

}
